package com.gaff.emp.core.modules.perm.entity;

import cn.hutool.crypto.SecureUtil;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("sys_user")
public class SysUser {

    public static final String initPassword = SecureUtil.md5().digestHex("admin123");

    public static final Integer normal = 0;

    public static final Integer locked = 1;

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Integer id;

    private String username;

    private String password;

    private String email;

    private String mobile;

    private String realName;

    private Integer deptId;

    private String deptName;

    private Integer roleId;

    private String roleName;

    /**
     * 状态  1：禁用   0：正常
     */
    private Integer status;

}
